package com.jjh.mapper;

import com.jjh.pojo.Taocan;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface TaocanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Taocan record);

    Taocan selectByPrimaryKey(Integer id);

    List<Taocan> selectAll();

    int updateByPrimaryKey(Taocan record);

    List<Taocan> getByCondition(Map<String, Object> map);

    Taocan getByName(String name);

    Taocan getById(Integer id);

    int updateStatus(Integer id, String status);
}